package com.ding.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @ClassName IDi_userFeign
 * @Author xiongzw
 * @Date 2024/2/27 11:20
 * @Description
 * @Version: 1.0
 **/
@FeignClient(value = "sfding-svr", contextId = "sfding-svr", path = "/sfding-svr/di_user")
@RestController
public interface Di_userFeign {

    /**
     * 按照组织层级id查询对应的人员
     * @param
     * @return
     */
    @PostMapping("/findUserByOrgId")
    ResponseDTO findUserByOrgId(@RequestParam("orgId") String orgId);


    /**
     * 通过手机号查询对应的赣政通人员数据
     * @param phones
     * @return
     */
    @PostMapping("/getUserByPhones")
    ResponseDTO getUserByPhones(@RequestBody List<String> phones);

    /**
     * 根据区划查询关联用户
     * @param adid
     * @return
     */
    @PostMapping("/getUserByAdid")
    ResponseDTO getUserByAdid(@RequestParam String adid);

    /**
     * 根据区划查询关联用户
     * @param deptid
     * @return
     */
    @PostMapping("/getUserByDeptid")
    ResponseDTO getUserByDeptid(@RequestParam String deptid);
}
